package com.myBlast.client.models;

import com.extjs.gxt.ui.client.data.BaseModel;

/**
 * Model class for the form
 * @author Parit Bansal
 */
public class FormModel extends BaseModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public FormModel()
	{}
	
	public FormModel (String name)
	{
		set("name",name);
	}
	
	public FormModel (String name, String value)
	{
		set("name",name);
		set("value",value);
	}
	
	public FormModel (String orgName, String orgId, String maxEVal, String minEVal)
	{
		set("orgName", orgName);
		set("orgId", orgId);
		set("maxEVal", maxEVal);
		set("minEval", minEVal);
	}
	
	public FormModel (String orgName,Boolean b1, Boolean b2, Boolean b3)
	{
		set("orgName",orgName);
		set("e1",b1);
		set("e2",b2);
		set("e3",b3);
		set("url","");
	}
	
	public String getMaxVal()
	{
		return get("maxEVal");
	}
	
	public String getMinVal()
	{
		return get("minEval");
	}
} // FormModel
